package com.zyh.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * (TAuthority)实体类
 *
 * @author makejava
 * @since 2021-05-24 22:11:25
 */
@Data
public class Authority implements Serializable {
    private static final long serialVersionUID = -96236425360639637L;

    private Integer roleId;
    /**
    * 权限
    */
    //描述
    private String details;
    //权限/角色名
    private String authority;

    private Integer page;
    private Integer start;
    private Integer limit;

    public Authority(){

        if (page==null) {
            start=0;
        } else {
            start=(page-1)*limit;
        }
    }
}
